@import "common";

.pic-upload-and-choose {
  .el-dialog {
    .el-dialog__body {
      padding: 10px 0px;
      & > div {
        padding: 0px 20px;
      }
    }
  }
}

.admin {
  a {
    color: inherit;
  }
  .login-bg {
    background: url(imgs/admin-bg.jpg);
    .login {
      .el-form-item {
        margin-bottom: 1rem;
      }
      min-height: 100vh;
      .login-page {
        padding-top: 8rem;
      }
      .login-con {
        width: 360px;
        margin: 0 auto 1rem;
      }
      .login-div {
        font-size: 15px;
        color: #1c2438;
        font-weight: 700 !important;
      }
      .login-span {

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .web-title {
        color: #f0f0f0;
        margin-bottom: 30px;
      }
      .copy-info {
        color: #f0f0f0;
      }
    }
  }
  .h-header {
    background: #373d41;
    -webkit-box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  }

  .h-breadcrumb {
    width: 100%;
    height: 2rem;
    line-height: 2rem;
    padding: 0px 15px;
    font-size: 0.8rem;
    background: #fff;
    -webkit-box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    margin-top: 1px;
    margin-bottom: 1px;
    font-weight: 600;
  }

  .h-footer {
    border-top: 1px solid #d6d6d6;
    //position: fixed;
    //bottom: 0;
    //width: 100%;
    background: #ffffff;
    //z-index: 100;
  }

  /*
  .main-view {
    width: 100%;
    height: calc(~"100vh - 129px");
    overflow: hidden;
  }
  */

  .alert {
    padding: 2px 0;
  }

  .col {
    overflow: hidden;
  }

  .main-content {
    padding-bottom: 15px;

    .el-table--mini, .el-table--small, .el-table__expand-icon {
      font-size: 0.8rem;
    }

    .tool-bar {
      .inline-item {
        display: inline-block;
        line-height: 32px;
        margin-right: 10px;
      }
      .inline {
        display: inline-block;
        line-height: 32px;
      }

      .label {
        font-size: 12px;
        font-weight: 600;
        vertical-align: top;
        margin-right: 5px;
      }
      background: #ffffff;
      padding: 10px 0px;
      margin-bottom: 15px;
      .el-form-item {
        margin-bottom: 0px;
      }
      .more-params {
        .el-form-item {
          margin-bottom: 10px;
        }
        clear: both;
        box-sizing: border-box;
      }
      .el-form-item__label {
        font-size: 12px;
      }
      .el-input--small {
        font-size: 12px;
      }
      .el-input-group {
        .el-input__inner {
          border-radius: 3px 0px 0px 3px;
        }
        .el-input-group__append, .el-input-group__prepend {
          border-radius: 0px 3px 3px 0px;
        }
      }
      .el-input__inner {
        border-radius: 3px;
      }
    }
  }

  .h-pagination {
    background: #ffffff;
    padding: 0.5rem 0.3rem;
    border: 1px solid #ebeef5;
    border-top: 0;
    text-align: right;
    .pagination-tool {
      float: left;
      margin-left: 8px;
    }
  }
  .content-view {
    min-height: calc(~"100vh - 90px");
  }

  .h-sidebar {
    width: 160px;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background: #fff;

    .side-bar-handler {
      height: 16px;
      line-height: 16px;
      font-size: 12px;
      text-align: center;
      border-bottom: 1px solid rgba(217, 217, 217, 0.55);
      cursor: pointer;
      i {
        line-height: 16px;
      }
    }
  }
  .min-sidebar {
    width: 60px;
  }
  .hide-sidebar {
    display: none;
  }
  .el-table-column--selection {
    text-align: center;
  }
  table {
    th {
      > .cell {
        text-align: center;
      }
    }
  }

  .h-form {
    padding: 10px 5px 0px 5px;
    .form-label {
      display: inline-block;
      color: #909399;
      font-weight: 500;
      padding: 4px 0px;
      font-size: 0.8rem;
    }
    .form-content {
      display: inline-block;
      font-size: 0.8rem;
      padding: 5px 5px 0px;
      div {
        margin-bottom: 5px;
      }
    }
  }

  .el-badge__content.is-fixed {
    top: 10px;
  }
  .el-message-box__status.el-icon-info {
    color: #2d8cf0
  }

  .el-message-box {
    width: auto;
    min-width: 420px;
  }
  .pic-dialog {
    .el-carousel {
      text-align: center;
    }
    .el-carousel__item:nth-child(2n) {
      background-color: transparent;
    }

    .el-carousel__item:nth-child(2n+1) {
      background-color: transparent;
    }
    .el-dialog__header {
      padding: 0;
      display: none;
    }
    .el-dialog__body {
      padding: 0;
      margin: 0;
    }
    .is-active {
      border: 0 !important;
    }

    .el-carousel__item, .el-carousel__mask {

    }
  }

  .el-table__expanded-cell {
    padding: 5px;
  }

  .el-radio__label {
    font-size: 12px;
    font-weight: 500;
  }
  .el-radio, .el-radio--medium.is-bordered .el-radio__label {
    font-size: 12px;
    font-weight: normal;
  }

  .el-radio + .el-radio {
    margin-left: 10px;
  }

  .el-loading-spinner .circular {
    height: 21px;
    width: 21px;
  }

  .el-loading-spinner {
    margin-top: -9px
  }

  .order-info {
    .order-label {
      font-weight: 500;
      color: #909399;
    }
    .order-type {
      font-weight: 600;
      color: red
    }
    .order-pay-sn {
      color: red;
      font-size: 14px;
      font-weight: 800
    }

    .order-pay-info {
      color: red;
      font-size: 14px;
      font-weight: 800
    }
  }

  .el-select-dropdown__item {
    padding: 1px 10px;
    height: auto;
  }

  .good-item-info {
    .good-item-pic {
      display: inline-block;
      width: 60px;
      height: 60px;
      margin-right: 5px;
      img {
        width: 60px;
        height: 60px;
      }
    }
    .good-item-name {
      vertical-align: top;
      display: inline-block;
      font-size: 12px;
      line-height: 28px
    }
  }
  .order-search-item-query {
    display: inline-block;
    margin-bottom: 10px;

    .content {
      display: inline-block;
    }
    .label {
      width: 60px;
      text-align: right;
      display: inline-block;
      font-size: 12px;
      line-height: 32px;
      margin-right: 5px;
    }
    .el-form-item {
      width: 100%;
      .el-form-item__content {
        width: 120px;
      }
    }
    .inline {
      display: inline-block;
    }
  }
  .order-search-item-small {
    width: 225px;
    display: inline-block;
    margin-bottom: 10px;
    .label {
      width: 60px;
      text-align: right;
      display: inline-block;
      font-size: 12px;
      line-height: 32px;
      margin-right: 5px;
    }
    .content {
      width: 155px;
      display: inline-block;
    }
    .el-form-item {
      width: 100%;
      .el-form-item__content {
        width: 155px;
      }
    }

  }

  .order-search-item {
    display: inline-block;
    margin-bottom: 10px;
    .label {
      width: 60px;
      text-align: right;
      display: inline-block;
      font-size: 12px;
      line-height: 32px;
      margin-right: 5px;
    }
    .content {
      width: 180px;
      display: inline-block;
    }
    .el-form-item {
      width: 100%;
      .el-form-item__content {
        width: 230px;
      }
    }
  }
  .el-select-dropdown__item {
    font-size: 0.8rem;
  }
  .user-info {
    font-size: 0.8rem;
    margin-bottom: 5px;
    .user-pic {
      display: inline-block;
      height: 42px;
      vertical-align: top;
      margin-right: 5px;
      img {
        width: 42px;
        height: 42px;
        border-radius: 50% !important;
      }
    }
    .user-name {
      display: inline-block;
      line-height: 20px;
      vertical-align: top
    }

  }

  .good-info {
    .good-pic {
      float: left;
      margin-right: 10px;
      width: 90px;
      height: 90px;
      img {
        width: 90px;
        height: 90px;
      }
    }
    .good-name {
      float: left;
      line-height: 90px
    }
  }

  .h-button {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    color: rgb(96, 98, 102);
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(220, 223, 230);
    border-image: initial;
    outline: 0px;
    margin: 0px;
    transition: 0.1s;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
  }

  .button--primary {
    color: #fff;
    background-color: #409eff;
    border-color: #409eff;
  }

  .button--danger {
    color: rgb(255, 255, 255);
    background-color: rgb(245, 108, 108);
    border-color: rgb(245, 108, 108);
  }

  .good-detail-info {
    .good-detail-pic {
      cursor: pointer;
      float: left;
      margin-right: 10px;
      img {
        width: 90px;
        height: 90px;
      }
    }
    .good-detail-name {
      float: left;
      vertical-align: top;
      line-height: 30px;
      .label {
        font-weight: 500;
        color: #909399;
      }
    }
  }

  .order-status {
    div {
      margin-bottom: 3px;
    }
  }

  .el-autocomplete-suggestion li {
    padding: 0 10px;
  }
  .good-small-info {
    padding: 5px 0px;
    .good-small-pic {
      float: left;
      margin-right: 5px;
      width: 60px;
      height: 60px;
      img {
        width: 60px;
        height: 60px;
      }
    }
    .good-small-name {
      float: left;
      vertical-align: top;
      font-size: 12px;
      line-height: 30px;
    }
  }

  .out-link {
    text-decoration: none;
  }
  .red {
    color: #ef0b0bc4;
    font-weight: 700;
    span {
      color: #ef0b0bc4;
    }
  }

  .el-textarea__inner {
    padding: 5px;
  }

  .order-form {
    .el-form-item {
      margin-bottom: 10px !important;
    }
  }

  .el-form-item__content {
    font-size: 12px;
  }

  .brand-logo {
    width: 120px;
    height: 42px;
  }

  .el-alert--success {
    border-color: #c3e6cb;
  }

  .pd-15 {
    padding-bottom: 15px;
  }

  .el-dialog {
    .group-title {
      font-size: 14px;
      font-weight: 400;
      color: #333;
      margin: 10px 10px 12px;
      position: relative;
      line-height: 20px;
      overflow: hidden;
    }
    .group-title:after {
      content: "";
      width: 100%;
      height: 1px;
      position: absolute;
      top: 10px;
      margin-left: 20px;
      background: linear-gradient(90deg, #dcdee3 0, #dcdee3 50%, transparent 0, transparent) repeat-x 0 100%;
      background-size: 8px 1px;
    }
  }
  .el-message-box {
    vertical-align: 15vh;
  }

  .el-form-item {
    margin-bottom: 10px;
  }

  .cell {
    .el-button--mini, .el-button--mini.is-round {
      padding: 7px 10px;
    }
  }

  .el-form--label-top .el-form-item__label {
    padding: 0px 0px 5px 0px;
  }

  .el-dialog__footer {
    padding: 10px 20px 15px;
    text-align: left;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .el-dialog__body {
    padding: 10px 20px;
  }

  .table-edit-left {
    display: inline-block;
    padding-right: 20px;
    width: 100%
  }
  .table-edit-right {
    position: absolute;
    right: 10px;
    top: 8px;
  }

  .el-dialog__header {
    border-bottom: 1px solid #eeeeff;
  }
  .el-dialog__footer {
    border-top: 1px solid #eeeeff;
  }

  .el-opacity-transition {
    transition: opacity 0s cubic-bezier(.55, 0, .1, 1);
  }

  .el-menu {
    border: 0px;
    background: transparent;
  }

  .el-table__row {
    .el-alert {
      padding: 2px;
    }
  }

  .layout-copy {
    text-align: center;
    padding: 10px 0px;
    color: #9ea7b4;
    font-size: 12px;
  }

  .el-menu--horizontal {
    .el-menu-item:focus, .el-menu-item:hover {
      background: #00c1de8f;
      color: #ffffff;
    }
    .el-menu-item {
      i {
        color: #fff;
        margin-top: -2px;
        font-size: 16px;
      }
      color: #fff;
      &.is-active {
        background: #00c1de;
      }
      height: 50px;
      line-height: 50px;
    }
    > .el-menu-item.is-active {
      border: 0;
      color: #ffffff;
    }
    > .el-submenu.is-active .el-submenu__title {
      border: 0;
    }
  }

  .purchase-list::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
  .purchase-list::-webkit-scrollbar-track {
    background: #f6f6f6;
    border-radius: 2px;
  }
  .purchase-list::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 2px;
  }
  .purchase-list::-webkit-scrollbar-thumb:hover {
    background: #747474;
  }
  .purchase-list::-webkit-scrollbar-corner {
    background: #f6f6f6;
  }

  .purchase-item {
    border: 1px solid rgba(0, 21, 41, 0.08);
    min-height: 60px;
    padding: 5px 10px;
    margin-bottom: 6px;
    line-height: 1.5;
    a, a:hover, a:link {
      text-decoration: none;
      color: #4186D3;
    }
  }
  .purchase-side {
    border-right: 1px solid #ececec;
    padding-top: 10px;
    background: #ffffff;
    width: 360px;
    padding-left: 15px;
    padding-right: 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .purchase-content {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding-bottom: 15px;
    background-color: #f0f2f5;
  }
  .purchase-page {
    text-align: right;
    .el-pagination button, .el-pagination span:not([class*=suffix]) {
      font-size: 0.8rem;
      min-width: auto;
    }
    .el-pagination__total {
      margin-right: 5px;
    }
    .el-pagination .btn-prev {
      padding: 0px;
    }
    .el-pager li {
      padding: 0 4px;
      font-size: 12px;
      min-width: 20px;
      height: 28px;
      line-height: 28px;
      box-sizing: border-box;
      text-align: center;
    }
    .el-pagination .btn-next {
      padding-left: 0px;
    }
  }

  .purchase-list {
    margin-top: 10px;
    min-height: calc(~"100vh - 250px");
    overflow-y: auto;
    overflow-x: hidden;
  }
  .purchase-status {
    font-size: 12px;
    text-align: right;
    padding-right: 10px;
    color: red;
  }

  .purchase-detail {
    font-size: 0.8rem;
    color: #657180;
    span {
      margin-right: 20px;
    }
    clear: both;
  }
  .item-title {
    font-size: 20px !important;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
  }
  .el-menu-vertical {

    .el-menu-item i {
      font-size: 14px;
      margin-right: 5px;
    }

    &.el-menu--collapse {
      .el-menu-item {
        text-align: center;
      }

      .el-tooltip {
        text-align: center;

        i {
          text-align: center;
          padding: 0px;
          margin: 0px auto;
          font-size: 20px;
        }
      }
    }
  }

  .CodeMirror {
    height: calc(~"100vh - 30vh");;
  }

  .order-price-info {
    .label {
      color: #909399;
    }
    .red {
      color: red;
      font-weight: 700;
    }
  }

  .order-num-info {
    .label {
      color: #909399;
    }
    .red {
      color: red;
      font-weight: 700;
    }
  }

  .el-alert__content {
    width: 100%;
  }
  .el-switch__label * {
    font-size: 0.8rem;
    line-height: 1.2rem;
  }
  .el-switch__label {
    font-size: 0.8rem;
    line-height: 1.2rem;
  }
  .el-breadcrumb__item:last-child .el-breadcrumb__inner, .el-breadcrumb__item:last-child .el-breadcrumb__inner a, .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover, .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
    color: rgba(0, 0, 0, 0.45);
  }

  .mt-15 {
    margin-top: 15px;
  }

  .order-sn {
    color: red;
  }
  .item-status {
    margin-left: 20px;
  }
  .layout-logo {
    display: inline-block;
    float: left;
    line-height: 50px;
    font-weight: 700;
    font-size: 32px;
    color: #ffffff;
    width: 160px;
    text-align: center;
    transition: all .3s;
    background: #373d41;
    margin-right: 20px;
  }

  .el-breadcrumb__inner, .el-breadcrumb__inner a {
    color: rgba(0, 0, 0, 0.45);
    transition: color .3s;
  }

  .el-tabs__item {
    font-weight: normal;
  }

  .main-content-edit {
    padding-top: 0px;
    margin-bottom: 53px;
    //background-color: #ffffff;
    padding-bottom: 15px;
    .el-card__body {
      padding-top: 5px;
    }
    .el-card__header {
      padding: 15px 20px;
      h5 {
        margin-bottom: 0;
      }
    }
  }

  .custom-form {
    .el-form-item {
      span {
        font-size: 0.8rem;
        font-weight: normal;
      }
      .el-color-picker__trigger {
        span {
          margin-bottom: 0;
        }
      }
    }

    .uploading {
      background: black;
    }
    .el-tag {
      margin-right: 0.8rem;
    }

    .button-new-tag {
      height: 26px;
      line-height: 24px;
      padding-top: 0;
      padding-bottom: 0;
    }

    .button-new-tag span {
      padding-left: 0px !important;
    }

    .input-new-tag {
      width: 90px;
      margin-left: 10px;
      vertical-align: bottom;
    }
  }

  .main-content-full {
    margin: 10px 15px 0px 15px;
    width: 100%;
  }

  .inner-form {
    .title-bar {
      background: #ffffff;
      line-height: 24px;
      padding: 15px 0px 15px 20px;
      border-bottom: 1px solid #e8e8e8;
      font-size: 20px;
      font-weight: 500;
      color: rgba(0, 0, 0, 0.85);
    }

    .detail-content {
      background: #ffffff;
      position: relative;
      .title {
        position: relative;
        font-size: 1rem;
        font-weight: 500;
        padding-right: 10px;
        color: #333;
        z-index: 1;
        background: #ffffff;
      }
      .dashed-line {
        position: absolute;
        top: 11px;
        left: 0;
        width: 100%;
        border-bottom: 1px dashed #e6e7eb;
      }
    }

    .el-form-item__content {
      font-size: 0.8rem;
    }
    .form-content-detail {
      background: #ffffff;
      padding: 15px 0px;
      min-height: calc(~"100vh - 250px");
      overflow-y: auto;
      overflow-x: hidden;
      .el-form-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
        //border-bottom: 1px dashed #e8e8e8;
      }
      .el-input-number--small {
        width: 160px;
      }
      .el-form-item__label {
        text-align: right;
        width: 90px;
        padding: 0px;
      }
      .el-form-item__content {
        margin-left: 90px;
        .el-form-item__error {
          left: 10px;
        }
      }
    }
    .form-content {
      background: #ffffff;
      padding: 15px 0px;
      min-height: calc(~"100vh - 211px");
      overflow-y: auto;
      overflow-x: hidden;
      .el-form-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
        //border-bottom: 1px dashed #e8e8e8;
        .el-form-item__label {
          text-align: right;
          width: 90px;
          padding: 0px;
        }
        .el-form-item__content {
          font-size: 12px;
          margin-left: 90px;
          .el-form-item__error {
            left: 10px;
          }
        }
      }

      .el-input-number--small {
        width: 160px;
      }

    }
  }
}
